<template>
  <div>
    <div class="hotcity"
         v-for="(item,index) in cityList"
         :key="index">
      <div class="hot-title">
        <span>{{item.title}}</span>
      </div>
      <div class="hot-list">
        <ul>
          <li v-for="(item,index) in item.lists"
              :key="index">
            <!-- <li> -->
            {{item}}
          </li>
          <li class="empty"></li>
          <li class="empty"></li>
          <li class="empty"></li>
          <li class="empty"></li>
        </ul>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ['cityList']
}
</script>
<style scoped>
.hot-title {
  height: 0.8rem;
  line-height: 0.8rem;
  padding-left: 0.2rem;
  font-size: 0.32rem;
  font-weight: bold;
}
ul {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
}
li {
  display: block;
  box-sizing: border-box;
  width: 24.7%;
  line-height: 0.97rem;
  font-size: 0.28rem;
  background: #fff;
  flex-shrink: 0;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  border: 1px solid rgb(244, 244, 244);
  border-left: none;
  border-right: none;
  margin-top: -1px;
}
.empty {
  height: 0;
  border: none;
  margin-top: 0;
  margin-bottom: 0;
  visibility: hidden;
  border: 0px;
}
</style>